package com.yanfan.ba.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.yanfan.common.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.FieldFill;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * BA设备数据对象 ibms_ba_data
 *
 * @author genluo
 * @date 2024-09-22
 */

@Data
public class IbmsBaData implements Serializable{

    private static final long serialVersionUID=1L;

    /**
     * id
     */
    @Excel(name = "id")
    @TableId(value = "id" , type = IdType.AUTO) // 整型类型使用自增
    private Long id;

    /**
     * 设备编号
     */
    @Excel(name = "设备编号")
    private Long instanceNumber;

    /**
     * 设备名称
     */
    @Excel(name = "设备名称")
    private String name;

    /**
     * 设备数据
     */
    @Excel(name = "设备数据")
    private String presentValue;

    /**
     * 备注信息
     */
    @Excel(name = "备注信息")
    private String description;

    /**
     * 数据类型
     */
    @Excel(name = "数据类型")
    private String objectType;

    /**
     * ${column.columnComment}
     */
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "${column.columnComment}" , width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createdAt;

    /**
     * ${column.columnComment}
     */
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "${column.columnComment}" , width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date updatedAt;

    /**
     * 单位
     */
    @Excel(name = "单位")
    private String units;

    /**
     * 运行信号0停止，1运行
     */
    @Excel(name = "运行信号0停止，1运行")
    private String runningType;

    /**
     * 故障信号0正常，1故障
     */
    @Excel(name = "故障信号0正常，1故障")
    private String troubleSignal;
}
